<?php
/* @var $this DisplayController */
$this->breadcrumbs = array();
if($model->getType() == News::TYPE_GENERAL)
{
    $this->breadcrumbs[yii::t('models/News','Center News')] = array('display/centernews');
}
else if($model->getType() == News::TYPE_ANNOUNCEMENT)
{
    $this->breadcrumbs[yii::t('models/News','Announcement')] = array('display/announcement');
}
else if($model->getType() == News::TYPE_IMAGECONTENT)
{
    $this->breadcrumbs[yii::t('models/News','Image Content News')] = array('display/imagecontentnews');
}
$this->breadcrumbs[] = CHtml::encode($model->title);
?>
<div class="panel panel-box" style="overflow:hidden;">
    <div class="panel-heading">
            <h3 class="panel-title text-center">
                <?php echo CHtml::encode($model->title);?>
            </h3>
    </div>
    <div class="panel-body" style="padding:25px">
    <p class="text-center" style="margin-top:-10px;">
        <?php echo yii::t('models/News','Published Date').':'.date('Y-m-d',strtotime($model->published_date)).' '.
                yii::t('models/News','Views').':'.$model->views;?>
    </p>
   <p>
        <?php echo $model->content;?>
    </p>
    </div>
</div>
